﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Program
    {
        //3、生成4-7之间的随机小数，保留两位小数。
        static void Main(string[] args)
        {
            Random ran = new Random();
            for (int i = 0; i <50; i++)
            {

            int a = ran.Next(4, 7);
            double b = ran.NextDouble();
            Console.WriteLine((a+b).ToString("#0.00"));
            }
            Console.ReadKey();
        }
    }
}
